<?php

header("content-type:text/html;charset=utf-8");
$id=$_GET['userid'];
$pass1=$_GET['userpass'];
$user_logn_flay=$_GET['user_logn'];
$link=mysqli_connect('localhost','root','','show1');

mysqli_set_charset($link,"utf8");
if($user_logn_flay){
    $sql= "Select * from tx where name = '$id' anduserpass='$pass1' ";
}else{
    $sql= "Select * from tx where name = '$id'";
}


$result=mysqli_query($link,$sql);

if(mysqli_fetch_row($result)){
    echo "11";
}else{
    echo "00";
}
mysqli_close($link);

?>